/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
}

/* 登录页样式 */
.login-container {
    width: 400px;
    margin: 100px auto;
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.login-container h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #2c3e50;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

.form-group input, .form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.btn-login {
    width: 100%;
    padding: 12px;
    background-color: #3498db;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
}

.btn-login:hover {
    background-color: #2980b9;
}

.error-msg {
    color: #e74c3c;
    text-align: center;
    margin: 15px 0;
}

/* 导航栏样式 */
.navbar {
    background-color: #2c3e50;
    color: #fff;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 20px;
    font-weight: bold;
}

.user-info a {
    color: #ecf0f1;
    text-decoration: none;
    margin-left: 15px;
}

.user-info a:hover {
    text-decoration: underline;
}

/* 主体容器样式 */
.container {
    display: flex;
    min-height: calc(100vh - 64px);
}

/* 侧边栏样式 */
.sidebar {
    width: 200px;
    background-color: #34495e;
    color: #fff;
}

.sidebar ul {
    list-style: none;
}

.sidebar li a {
    display: block;
    padding: 15px 20px;
    color: #ecf0f1;
    text-decoration: none;
    border-bottom: 1px solid #2c3e50;
}

.sidebar li a:hover, .sidebar li a.active {
    background-color: #3498db;
}

/* 内容区域样式 */
.content {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}

.content-header h3 {
    color: #2c3e50;
}

/* 按钮样式 */
.btn-add, .btn-back, .btn-save, .btn-reset, .btn-search, .btn-view, .btn-edit, .btn-delete {
    display: inline-block;
    padding: 8px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    font-size: 14px;
}

.btn-add {
    background-color: #2ecc71;
    color: #fff;
}

.btn-add:hover {
    background-color: #27ae60;
}

.btn-back {
    background-color: #95a5a6;
    color: #fff;
}

.btn-back:hover {
    background-color: #7f8c8d;
}

.btn-save {
    background-color: #3498db;
    color: #fff;
}

.btn-save:hover {
    background-color: #2980b9;
}

.btn-reset {
    background-color: #f39c12;
    color: #fff;
    margin-left: 10px;
}

.btn-reset:hover {
    background-color: #e67e22;
}

.btn-search {
    background-color: #1abc9c;
    color: #fff;
}

.btn-search:hover {
    background-color: #16a085;
}

.btn-view {
    background-color: #3498db;
    color: #fff;
}

.btn-edit {
    background-color: #f39c12;
    color: #fff;
    margin-left: 5px;
}

.btn-delete {
    background-color: #e74c3c;
    color: #fff;
    margin-left: 5px;
}

/* 表单容器样式 */
.form-container {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.form-actions {
    margin-top: 20px;
}

/* 搜索表单样式 */
.search-form {
    background-color: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.search-form input, .search-form select {
    padding: 8px;
    margin-right: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* 数据表格样式 */
.data-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.data-table th, .data-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.data-table th {
    background-color: #34495e;
    color: #fff;
}

.data-table tbody tr:hover {
    background-color: #f8f9fa;
}

.action-buttons {
    display: flex;
    gap: 5px;
}

.no-data {
    text-align: center;
    color: #7f8c8d;
    padding: 30px;
}

/* 详情页面样式 */
.detail-container {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.detail-item {
    display: flex;
    margin-bottom: 15px;
}

.detail-item label {
    width: 120px;
    font-weight: bold;
    color: #2c3e50;
}

.detail-item span {
    flex: 1;
}

.detail-actions {
    margin-top: 30px;
}
